
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="beans.ViewTopicBean"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<%@taglib uri="/WEB-INF/struts-bean" prefix="bean"%>

<style type="text/css">
    @import url( css/Style.css );
</style>
<html>
    <head>
        <title>JETS25JAN forums | <bean:write name="ViewTopicBean" property="topicname"/></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name='MSSmartTagsPreventParsing' content='TRUE' />
        <meta http-equiv='expires' content='-1' />
        <meta http-equiv= 'pragma' content='no-cache' />
        <meta name="robots" content="nofollow" />


        <script type="text/javascript">
            <!--

            function navHover(which)
            {
                if (document.getElementById(which.id))
                {
                    cur = document.getElementById(which.id).className;

                    if (cur == 'buttonLarge')
                    {
                        document.getElementById(which.id).className = 'buttonLargeHover'
                    }
                    else if (cur == 'buttonSmall')
                    {
                        document.getElementById(which.id).className = 'buttonSmallHover'
                    }
                }
            }

            function navReset(which)
            {
                if (document.getElementById(which.id))
                {
                    cur = document.getElementById(which.id).className;

                    if (cur == 'buttonLargeHover')
                    {
                        document.getElementById(which.id).className = 'buttonLarge'
                    }
                    else if (cur == 'buttonSmallHover')
                    {
                        document.getElementById(which.id).className = 'buttonSmall'
                    }
                }
            }


            function navJump(where)
            {
                window.location=where;
            }
            -->
        </script>



    </head>

    <body >
        <div id='topBar'>
            <div class='topBarLinks'>


	Welcome <logic:notEmpty name="userBean" scope="session">
                    <bean:write name="userBean" property="username"/>
                    .&nbsp;&nbsp;&middot;&nbsp;&nbsp;
                    <a href="userProfile.jsp">Profile</a>

                </logic:notEmpty> 
                &nbsp;&nbsp <html:link action="/DisplayTopicAction.do">Home</html:link>

                &nbsp;&nbsp;&middot;&nbsp;&nbsp;
                <logic:notEmpty name="userBean" scope="session">
                    <html:link page="/LogoutURL.do">Logout</html:link>
                </logic:notEmpty>

                &nbsp;&nbsp;&middot;&nbsp;&nbsp;
                <logic:empty name="userBean" scope="session">
                    <a href="RegisterationForm.jsp">Register</a>
                </logic:empty>
                &nbsp;&nbsp;&middot;&nbsp;&nbsp;
                <logic:notEmpty name="userBean" scope="session">
                   <logic:greaterThan value="0" name="userBean" property="userprev">
                        <html:link page="/ModUserControl.do">Member List</html:link>
                   </logic:greaterThan>
                </logic:notEmpty>




            </div>
        </div>
        <div id='pageheader'>
            <table style="width:100%; height:50px;" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width:45%;"><a href="index.jsp" title="CSS Drive forums"><img src="css/1.png" width="216" height="74" border="0" alt="ExpressionEngine Forums" /></a></td>
                    <td style="width:55%;" align="right" class="rightheader">





                        <logic:empty name="userBean" scope="session">

                            <html:form action="/LoginAction.do">
                                <div>
                                    <input type="hidden" name="XID" value="2fa8ad649a97bbb8c41d7d3924f66fee83b1f02f" />
                                    <input type="hidden" name="ACT" value="9" />
                                    <input type="hidden" name="FROM" value="forum" />
                                    <input type="hidden" name="mbase" value="http://www.cssdrive.com/index.php/forums/member/" />
                                    <input type="hidden" name="board_id" value="1" />
                                    <input type="hidden" name="anon" value="1" />
                                    <input type="hidden" name="RET" value="http://www.cssdrive.com/index.php/forums/viewforum/11/" />
                                    <input type="hidden" name="site_id" value="1" />
                                </div>


                                <table cellpadding="0" cellspacing="4" border="0" align="right">
                                    <tr>
                                        <td>Username</td>
                                        <td><html:text property="username" ></html:text></td>

                                        <td><input type="checkbox" class="checkbox" name="auto_login" value="1" checked="checked" /> Remember Me?</td>
                                    </tr>
                                    <tr>
                                        <td>Password</td>
                                        <td><html:password property="password"></html:password></td>
                                        <td><html:submit value="Login" styleClass="submit"></html:submit><html:reset styleClass="submit"></html:reset></td>

                                    </tr>
                                    <tr><td><html:errors property="UserNameError"/><html:errors property="UserNameErr"/></td>
                                    </tr>
                                    <tr>
                                        <td><html:errors property="UserPasswordError"/><html:errors property="PasswordErr"/></td>
                                    </tr>
                                </table>
                            </html:form>
                        </logic:empty>




                    </td>
                </tr>
            </table>
        </div>
        <div id="subheader">

            <table style="width:100%;" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td><div class="itempadbig"><div class="breadcrumb"><a href="http://www.cssdrive.com/index.php/forums/">Forum Home</a><span class="breadcrumbspacer">&nbsp;&nbsp;&gt;&nbsp;&nbsp;</span><a href="http://www.cssdrive.com/index.php/forums/viewcategory/3/">CSS in action</a><span class="breadcrumbspacer">&nbsp;&nbsp;&gt;&nbsp;&nbsp;</span><a href="http://www.cssdrive.com/index.php/forums/viewforum/4/">Post a CSS code example</a><span class="breadcrumbspacer">&nbsp;&nbsp;&gt;&nbsp;&nbsp;</span><span class="currentcrumb">Thread</span></div></div></td>

                    <td align="right" valign="middle">

                        <html:form action="/Search.do">
                            <div>
                                <input type="hidden" name="XID" value="82f0ac26bfac8a5c7ee2fb21ec9708902520d712" />
                                <input type="hidden" name="board_id" value="1" />
                                <input type="hidden" name="site_id" value="1" />
                            </div>
                            <table border="0" cellpadding="0" cellspacing="0" align="right">
                                <tr>
                                    <td><div class="smallLinks"><b>Search</b>&nbsp;&nbsp;</div></td>
                                    <td><html:text property="search" size="20" maxlength="80" style="width:130px"></html:text></td>
                                    <td>&nbsp;<html:submit value="search"></html:submit></td>
                                </tr> 
                            </table> 
                        </html:form>


                    </td>

                </tr>
            </table>
        </div>
        <div id="content">
            <script type="text/javascript">
                <!--

                function showimage(loc, width, height)
                {
                    window.open(loc,'Image','width='+width+',height='+height+',screenX=0,screenY=0,top=0,left=0,toolbar=0,status=0,scrollbars=0,location=0,menubar=1,resizable=1');
                    return false;
                }

                function showfastreply()
                {
                    if (document.getElementById('fastreply').style.display == "block")
                    {
                        document.getElementById('fastreply').style.display = "none";
                    }
                    else
                    {
                        document.getElementById('fastreply').style.display = "block";
                    }
                }

                function showHideRow(el)
                {
                    if (document.getElementById(el).style.display == "")
                    {
                        document.getElementById(el).style.display = "none";
                    }
                    else
                    {
                        document.getElementById(el).style.display = "";
                    }
                }

                function check()
                {
                    answer = confirm("Are you sure to Spam this post")
                    if(answer==0)
                        return false;
                    else
                        return true;
                }
                //-->
            </script>




            <table cellpadding="0" cellspacing="0" border="0" style="width:100%;" >
                <tr>
                    <td class="tableHeadingBG" colspan="2">
                        <div class="tableHeading">
                            <bean:write name="ViewTopicBean" property="topicname"/>
                            <logic:notEmpty name="userBean" scope="session">
                                <logic:greaterThan value="0" name="userBean" property="userprev">
                                    <html:form action="/preventSpamAction">
                                        <input type="hidden" name="topicid" value="<bean:write name='ViewTopicBean' property='topicid'/>" />
                                        <html:submit value="splitTopic" property="actionType" styleClass="submit"></html:submit>
                                        
                                        <html:text name="PreventSpamFormBean" property="newName" value="split date(DD-Mon-YYYY)"/>
                                        <html:submit value="moveTopic" property="actionType" styleClass="submit"></html:submit>
                                        
                                        <html:select property="sectionId">
                                            <html:optionsCollection name="ViewTopicBean" property="allSections" label="sectionname" value="sectionid"/>
                                        </html:select>
                                    </html:form>
                                        
                                </logic:greaterThan>
                            </logic:notEmpty>
                                        
                        </div>
                            <html:errors property="PrevError"/>
                    </td>
                    <td class="tableHeadingBG" colspan="1" align="right"><div class="altLinks">&nbsp;</div></td>

                </tr>
                <tr id="a9" >
                    <td colspan="3">

                        <logic:notEmpty name="userBean" scope="session">

                            <html:form action="/readmarkLurkAction.do"  >

                                <html:hidden property="topicid" name="ViewTopicBean"/>
                                <center>


                                    <table>
                                        <tr>
                                            <logic:equal name="test" value="false">
                                                <logic:equal name="ReadmarkLurkBean" property="readmarkStatus" value="false">
                                                    <td><html:submit value="readmark" property="choose" styleClass="submit"/></td>
                                                </logic:equal>
                                            </logic:equal>
                                            <td> <html:submit value="lurk" property="choose" styleClass="submit"/></td>
                                        </tr>
                                    </table>
                                </center>

                                <br/>


                                <br/>


                            </html:form>

                        </logic:notEmpty>
                                 <bean:define id="pre" value="0"/>
                        <logic:iterate name="ViewTopicBean" property="postes" id="post">
                            
                            <table class="threadBorder" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
                                <tr>
                                    <td class="tableRowHeadingBold" style="width:130px;">
                                        <div class="largeLinks">
                                            <a href="">
                                                <bean:write name="post" property="jfMembers.username"/>
                                            </a>
                                        </div>
                                    </td>
                                    <td class="tableRowHeading" colspan="2">

                                    <table cellpadding="0" cellspacing="0" border="0" style="width:99%;">
                                        <tr>
                                            <td>
                                                Posted: <bean:write name="post" property="postdate" format="dd/MM/yyyy"/>
                                            </td>
                                            
                                           
                                <td>
                                    &nbsp;
                                    <logic:notEmpty name="userBean" scope="session">

                                        <logic:equal name="post" property="jfMembers.username" value="${sessionScope.userBean.username}">
                                            <bean:define id="content" name="post" property="content" toScope="session"></bean:define> 

                                        <html:link action="/editposthome.do" scope="request" styleClass="tableHeading" paramId="postid" paramName= "post" paramProperty="postid"> Edit Post </html:link> 
                                        </logic:equal> 
                                     </logic:notEmpty> 
                                </td>

                                            <td align="right">
                                                &nbsp;&nbsp;<span class="smallLinks">
                                                   
                                                    <logic:equal name="pre" value="1">
                                                       
                                                    <logic:notEmpty name="userBean" scope="session">
                                                        <logic:greaterThan value="0" name="userBean" property="userprev">
                                                    <html:form action="/preventSpamAction">
                                                        <html:hidden name="post" property="postid"></html:hidden>
                                                        <input type="hidden" name="topicid" value="<bean:write name='ViewTopicBean' property='topicid'/>" />
                                                        <html:submit value="preventSpam" property="actionType" styleClass="buttonSmall" onmouseover="navHover(this)" onmouseout="navReset(this)" onclick="check()"></html:submit>
                                                    </html:form>
                                                        </logic:greaterThan>
                                                    </logic:notEmpty>
                                                         
                                                    </logic:equal>
                                                        <bean:define id="pre" value="1"/>
                                                       
                                                </span>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="tableCellOne" style="width:130px;" valign="top">
                                    <div class="rankMember"></div>
                                    <div class="itempad"> <img border="0" src="<bean:write name= 'post' property='jfMembers.avatar'/>" alt="Pulpit rock" height="200" width="200"/></div>
                                    <div class="itempad"><img src="http://www.cssdrive.com/themes/forum_themes/default2/images/rank.gif" width="9" height="10" border="0" alt="Rank" class="rankImage" /></div>
                                    <div class="userBlock"></div>
                                    <div class="userBlock"></div>
                                </td>
                                <td class="tableCellOne" valign="top" colspan="2">
                                    <div class="post">
                                        <p>
                                            <bean:write name="post" property="content" filter="false"/>
                                        </p>
                                    </div>
                                </td>

                                </tr><tr>

                                    <td class="tableCellTwo"  style="width:130px;">

                                    </td>

                                    <td class="tableCellTwo" colspan="2">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                &nbsp;

                                                <td>&nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </logic:iterate>
                    </td>
                </tr>

            </table>


           <table class="tableBorderLeft" cellpadding="0" cellspacing="0" border="0" style="width:100%;" >
                            <tr>

                               
                                <td class="tableHeadingBG" colspan="6">
                                    &nbsp;
                                    <logic:notEmpty name="userBean" scope="session">
                                    
                                         <bean:parameter id="bean" name="topic"/>
                                <html:link action="/posthome.do" scope="request" styleClass="tableHeading" paramId="topicid" paramName="bean">Add Post</html:link>
                                       
                                        </logic:notEmpty>
                                </td> 
                            </tr>
           </table>
            <div class="defaultCenter">
                <div class="marginpad">
                    &nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.cssdrive.com/index.php/forums/viewthread/45/">Making the &#146;content&#146; property useful!</a> &rsaquo;&rsaquo;

                </div>
            </div>
        </div>
        <div id="footer">
            <div class="itempadbig" style="display:none">
                <select name="theme_switcher" class="select" onchange="if (this.value != '') location.href=this.value">
                    <option value="">Select A Theme</option>
                    <option value="http://www.cssdrive.com/index.php?ACT=32&amp;board_id=1&amp;theme=shares2">Shares2</option>
                    <option value="http://www.cssdrive.com/index.php?ACT=32&amp;board_id=1&amp;theme=default2" selected="selected">Default2</option>
                    <option value="http://www.cssdrive.com/index.php?ACT=32&amp;board_id=1&amp;theme=grey2">Grey2</option>
                    <option value="http://www.cssdrive.com/index.php?ACT=32&amp;board_id=1&amp;theme=blue2">Blue2</option>
                    <option value="http://www.cssdrive.com/index.php?ACT=32&amp;board_id=1&amp;theme=developer2">Developer2</option>

                </select>
            </div>


            <p>Copyright (c) 2011 JETS25JAN INTAKE 31</p>



        </div>

    </body>
</html>
